package org.suwenqian.airoleplayingchatbackend.service;

import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.suwenqian.airoleplayingchatbackend.dao.dto.req.VoiceChatReqDTO;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;

public interface VoiceChatService {
    /**
     * 语音聊天
     * @param requestParm 请求参数
     * @return 返回语言文件
     */
    CompletableFuture<ResponseEntity<Resource>> voiceChat(VoiceChatReqDTO requestParm) throws IOException;
}
